<?php
/* Description: This file is used to add sub sub category. */
#########IncludeFiles####################################################################################
include_once '../inc/config.php';
include_once("../inc/bootstrape.php");

$id = trim($_REQUEST['id']);

if( $_POST['submit']=='Submit'){   
	$parms['id'] = $_POST['id'];
	$parms['title'] = $_POST['title'];
	$parms['description'] = $_POST['description'];
	$parms['added'] = date("Y-m-d h:i:s");
	 
	$condition['id'] = $parms['id'];
	
    if( CommonUtility::updateData($parms, 'inclusion_master', $condition)) {        
        header("Location: inclusion_mng.php?msg=1756");            
        exit;
    }
    $err = 1757;    
}

$editor = CommonUtility::includeEditor();

$brands = array();
$result = CommonUtility::getDataById($id,'inclusion_master');

$errMsg = $err;
$_tplName = 'master/inclusion_edit.tpl';
$_title = 'Edit Inclusion/Exclusion Item';

require_once _ADMIN_TPL_MAIN_;
?>